package com.briup.sms_plus.server;

import com.briup.sms_plus.common.model.User;

import java.util.Random;

public class SmsController {
    private static final Random RANDOM = new Random();
    private static final String[] roles = {"admin", "user"};

    public User login(String username, String password) {
        return new User(username, password, roles[RANDOM.nextInt(roles.length)]);
    }
}
